package com.baozheyangken.ai_learn.service;

import com.baozheyangken.ai_learn.pojo.dto.KnowledgePageQueryDTO;
import com.baozheyangken.ai_learn.pojo.result.PageResult;
import com.baozheyangken.ai_learn.pojo.result.Result;
import com.baozheyangken.ai_learn.pojo.vo.KnowledgeInsertVO;
import com.baozheyangken.ai_learn.pojo.vo.KnowledgeUpdateVO;
import org.springframework.core.io.Resource;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface KnowledgeService {
    Result knowledgeInsert(KnowledgeInsertVO knowledgeVO);

    PageResult knowledgeQuery(KnowledgePageQueryDTO knowledgePageQueryDTO);

    Result knowledgeUpdate(KnowledgeUpdateVO knowledgeVO);

    Result knowledgeDelete(Long knowledgeId);

    Resource exportTemplate() throws IOException;

    Result<String> importKnowledge(MultipartFile file,Long courseId);

    Resource exportExcel(Long courseId) throws Exception;
}
